(* Content-type: application/vnd.wolfram.mathematica *)

(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)

(* CreatedBy='Mathematica 11.2' *)

(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[       158,          7]
NotebookDataLength[     55628,       1317]
NotebookOptionsPosition[     44656,       1091]
NotebookOutlinePosition[     45845,       1124]
CellTagsIndexPosition[     45765,       1119]
WindowFrame->Normal*)

(* Beginning of Notebook Content *)
Notebook[{
Cell[TextData[{
 "New in: ",
 Cell["11.3", "HistoryData",
  CellTags->"New",ExpressionUUID->"41ee0f10-a2d2-463e-bd25-ba9bfff77f31"],
 " | Modified in: ",
 Cell[" ", "HistoryData",
  CellTags->"Modified",ExpressionUUID->"aad0de14-e2e2-4c08-9e17-caaef9848e76"],
 " | Obsolete in: ",
 Cell[" ", "HistoryData",
  CellTags->"Obsolete",ExpressionUUID->"aee3358d-1c12-4fa8-aff4-98cdb797de1f"],
 " | Excised in: ",
 Cell[" ", "HistoryData",
  CellTags->"Excised",ExpressionUUID->"e9a0354c-4ddd-401c-b34b-6dcfeb45b40c"]
}], "History",
 CellID->341476719,ExpressionUUID->"6736fc4f-1941-4c28-93a2-d3648c8107d3"],

Cell["Created by: meghanr on 09-14-2017 14:37:26", "AuthorDate",
 CellID->1276009994,ExpressionUUID->"cf483e96-d888-4ee2-91b7-824133a43d99"],

Cell[CellGroupData[{

Cell["Categorization", "CategorizationSection",
 CellID->1122911449,ExpressionUUID->"fc467886-c823-4f55-9fcd-c5db0c3197c7"],

Cell["Symbol", "Categorization",
 CellLabel->"Entity Type",
 CellID->686433507,ExpressionUUID->"9bd608e6-15b1-463c-9b14-a06a8aa35e76"],

Cell["MongoLink", "Categorization",
 CellLabel->"Paclet Name",
 CellID->605800465,ExpressionUUID->"cc3bc352-90bf-4c8a-b7b3-d0038d5dba38"],

Cell["MongoLink`", "Categorization",
 CellLabel->"Context",
 CellID->468444828,ExpressionUUID->"cb104a4e-3462-4685-9637-052ff1e32c2c"],

Cell["MongoLink/ref/MongoCollectionAggregate", "Categorization",
 CellLabel->"URI",ExpressionUUID->"dd8ba117-0491-4ec7-a51a-04d6fde044a4"],

Cell["XXXX", "Categorization",
 CellLabel->"Title Modifier",
 CellID->172747495,ExpressionUUID->"d7b7f6bf-4827-4b57-83fb-36d22bd885b7"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Synonyms", "SynonymsSection",
 CellID->1427418553,ExpressionUUID->"73806875-dc2c-4dc5-8485-9a164ca9a15b"],

Cell["XXXX", "Synonyms",
 CellID->1251652828,ExpressionUUID->"cfa65330-8f59-45c3-b2f0-6dad7bf4b255"]
}, Closed]],

Cell[CellGroupData[{

Cell["Keywords", "KeywordsSection",
 CellID->477174294,ExpressionUUID->"e6c14227-a2ed-4ca3-9a65-1c26b2cfb026"],

Cell["XXXX", "Keywords",
 CellID->1164421360,ExpressionUUID->"3311276b-0b4a-4c99-b24b-61cb4d411b8a"]
}, Closed]],

Cell[CellGroupData[{

Cell["Syntax Templates", "TemplatesSection",
 CellID->1872225408,ExpressionUUID->"d323ab21-5d22-4a66-b341-b59e122d8e85"],

Cell[BoxData[""], "Template",
 CellLabel->"Additional Function Template",
 CellID->1562036412,ExpressionUUID->"6cbfcbbb-c153-46aa-9174-d4819fd84b5e"],

Cell[BoxData[""], "Template",
 CellLabel->"Arguments Pattern",
 CellID->158391909,ExpressionUUID->"038ed697-8009-4e7f-8bd2-a07ef0eac313"],

Cell[BoxData[""], "Template",
 CellLabel->"Local Variables",
 CellID->1360575930,ExpressionUUID->"3cb837df-be58-4489-9f56-66b6e7c1b450"],

Cell[BoxData[""], "Template",
 CellLabel->"Color Equal Signs",
 CellID->793782254,ExpressionUUID->"dbc1edcb-4482-4877-88bf-4a289c35a1e2"]
}, Closed]],

Cell[CellGroupData[{

Cell["Details", "DetailsSection",
 CellID->307771771,ExpressionUUID->"8ea96d98-b092-43ea-8f08-39ba45298337"],

Cell["XXXX", "Details",
 CellLabel->"Lead",
 CellID->49458704,ExpressionUUID->"25802d41-740b-4f74-bcef-7375ba382655"],

Cell["XXXX", "Details",
 CellLabel->"Developers",
 CellID->350963985,ExpressionUUID->"f5cd0cf5-5bd4-4f3a-8b35-8ac580f15ae2"],

Cell["XXXX", "Details",
 CellLabel->"Authors",
 CellID->422270209,ExpressionUUID->"0fb37b38-fa43-4b30-b97b-8673eb3ea647"],

Cell["XXXX", "Details",
 CellLabel->"Feature Name",
 CellID->545239557,ExpressionUUID->"400ada42-3959-4a47-a3c6-17bd23308b3f"],

Cell["XXXX", "Details",
 CellLabel->"QA",
 CellID->121292707,ExpressionUUID->"fdf078d0-9cd1-433d-b1db-3a2bdebb4a98"],

Cell["XXXX", "Details",
 CellLabel->"DA",
 CellID->29314406,ExpressionUUID->"5496af28-ce6f-4b3d-8d14-9b657dfc7534"],

Cell["XXXX", "Details",
 CellLabel->"Docs",
 CellID->96001539,ExpressionUUID->"3cf904ce-dca8-4911-ac29-c77ea3b6cd91"],

Cell["XXXX", "Details",
 CellLabel->"Features Page Notes",
 CellID->123278822,ExpressionUUID->"c2757ee7-6663-445a-9c85-9f9a84538060"],

Cell["XXXX", "Details",
 CellLabel->"Comments",
 CellID->240026365,ExpressionUUID->"3c221cc7-ada2-4d75-955b-5e7b0fcaf473"]
}, Closed]],

Cell[CellGroupData[{

Cell["Security Details", "SecuritySection",
 CellID->13551076,ExpressionUUID->"cbdbd5d6-7559-4192-9880-b611d2c416f8"],

Cell[BoxData[
 TagBox[GridBox[{
    {
     TemplateBox[{CheckboxBox[
        Dynamic[
         CurrentValue[
          EvaluationNotebook[], {TaggingRules, "SecurityRisk"}, False]]],
       StyleBox[
       "\"   Potential security risk\"", FontFamily -> "Arial", FontSize -> 
        10, StripOnInput -> False]},
      "RowDefault"]},
    {
     DynamicBox[ToBoxes[
       If[
        TrueQ[
         CurrentValue[
          EvaluationNotebook[], {TaggingRules, "SecurityRisk"}]], 
        InputField[
         Dynamic[
          CurrentValue[
           EvaluationNotebook[], {TaggingRules, "SecurityExplanation"}, ""]], 
         String, FieldHint -> "How so? (optional)", FieldSize -> {40, 5}, 
         BaseStyle -> {FontFamily -> "Arial", FontSize -> 12}], ""], 
       StandardForm],
      ImageSizeCache->{0., {0., 5.}}]}
   },
   DefaultBaseStyle->"Column",
   GridBoxAlignment->{"Columns" -> {{Left}}},
   GridBoxItemSize->{"Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}],
  "Column"]], "SecurityDetails",
 CellID->2488900,ExpressionUUID->"191b4e17-e850-4052-a7f5-dd53180b9f16"]
}, Closed]],

Cell[CellGroupData[{

Cell["MongoCollectionAggregate", "ObjectName",
 CellID->1224892054,ExpressionUUID->"e83e4266-7b96-4514-9c01-84f35b982428"],

Cell[TextData[{
 Cell["   ", "ModInfo",ExpressionUUID->"82838560-647a-4337-b7bd-6f4a520dfc20"],
 Cell[BoxData[
  RowBox[{
   ButtonBox["MongoCollectionAggregate",
    BaseStyle->"Link",
    ButtonData->"paclet:MongoLink/ref/MongoCollectionAggregate"], "[", 
   RowBox[{
    RowBox[{
     ButtonBox["MongoCollection",
      BaseStyle->"Link",
      ButtonData->"paclet:MongoLink/ref/MongoCollection"], "[", 
     StyleBox["\[Ellipsis]", "TR"], "]"}], ",", 
    StyleBox["pipeline", "TI"]}], "]"}]], "InlineFormula",ExpressionUUID->
  "10489b70-19e5-462f-a2bb-1b3a1ba381b8"],
 " \[LineSeparator]calculates aggregate values for the data in a ",
 Cell[BoxData[
  ButtonBox["MongoCollection",
   BaseStyle->"Link",
   ButtonData->"paclet:MongoLink/ref/MongoCollection"]], "InlineFormula",
  ExpressionUUID->"57c1eae0-e5a9-4f3f-ad02-febd8937cb63"],
 "."
}], "Usage",
 CellID->982511436,ExpressionUUID->"c2ed396c-091c-4af4-b412-d6985690cf62"],

Cell[TextData[{
 "To use ",
 Cell[BoxData[
 "MongoCollectionAggregate"], "InlineFormula",ExpressionUUID->
  "84ce7ae9-7eef-4513-b70d-a7eab4ad5826"],
 ", you first need to load ",
 StyleBox[ButtonBox["MongoLink",
  BaseStyle->"Link",
  ButtonData->"paclet:MongoLink/guide/MongoLinkOperations"],
  FontSlant->"Italic"],
 " using ",
 Cell[BoxData[
  RowBox[{
   ButtonBox["Needs",
    BaseStyle->"Link",
    ButtonData->"paclet:ref/Needs"], "[", "\"\<MongoLink`\>\"", "]"}]], 
  "InlineFormula",ExpressionUUID->"47076772-a033-497c-8766-c76bfaa25a3f"],
 "."
}], "Notes",
 CellID->362132550,ExpressionUUID->"f1af8f64-99a9-4f30-927e-cf36edd7232e"],

Cell[TextData[{
 Cell[BoxData[
  StyleBox["pipeline", "TI"]], "InlineFormula",ExpressionUUID->
  "76fdcd46-524e-452b-83fd-4a044d65e815"],
 " is a list of associations. The available aggregation pipeline operators \
can be found in the ",
 ButtonBox["MongoDB documentation",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["https://docs.mongodb.com/manual/reference/operator/aggregation-\
pipeline/"], None},
  ButtonNote->
   "https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/"],
 "."
}], "Notes",
 CellID->1067943069,ExpressionUUID->"7215f730-2c41-47f5-81dd-b4d7c3375925"],

Cell[TextData[{
 "More information about the aggregation ",
 Cell[BoxData[
  StyleBox["pipeline", "TI"]], "InlineFormula",ExpressionUUID->
  "432a7d2b-5eed-4003-a405-9e504d27ad00"],
 " can be found in the ",
 ButtonBox["MongoDB documentation",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["https://docs.mongodb.com/manual/core/aggregation-pipeline/"], None},
  ButtonNote->"https://docs.mongodb.com/manual/core/aggregation-pipeline/"],
 "."
}], "Notes",
 CellID->537891225,ExpressionUUID->"46deca33-7d0d-48f3-a714-8dcc816cd8ec"],

Cell[TextData[{
 Cell[BoxData[
  ButtonBox["MongoCollectionAggregate",
   BaseStyle->"Link",
   ButtonData->"paclet:MongoLink/ref/MongoCollectionAggregate"]], 
  "InlineFormula",ExpressionUUID->"e8d27f7f-4968-49d8-86b1-72155462d175"],
 " corresponds to ",
 ButtonBox["db.collection.aggregate()",
  BaseStyle->"Hyperlink",
  ButtonData->{
    URL["https://docs.mongodb.com/manual/reference/method/db.collection.\
aggregate/#db.collection.aggregate"], None},
  ButtonNote->
   "https://docs.mongodb.com/manual/reference/method/db.collection.aggregate/#\
db.collection.aggregate"],
 " in the MongoDB documentation."
}], "Notes",
 CellID->1905620106,ExpressionUUID->"00dd3b19-016c-45c8-bbed-20e7735b3920"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Tutorials", "TutorialsSection",
 CellID->250839057,ExpressionUUID->"93c189c8-fa16-4afd-b2e1-f954413b2828"],

Cell[TextData[{
 StyleBox[ButtonBox["MongoLink",
  BaseStyle->"Link",
  ButtonData->"paclet:MongoLink/tutorial/MongoLinkSimpleTutorial"],
  FontSlant->"Italic"],
 ButtonBox[" Introduction",
  BaseStyle->"Link",
  ButtonData->"paclet:MongoLink/tutorial/MongoLinkSimpleTutorial"]
}], "Tutorials",
 CellID->341631938,ExpressionUUID->"4bcf9d8e-0430-4c48-b6c1-32c556b686d7"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Related Demonstrations", "RelatedDemonstrationsSection",
 CellID->1268215905,ExpressionUUID->"f93f2f81-c821-43c4-93ad-fe293c6a47a0"],

Cell["XXXX", "RelatedDemonstrations",
 CellID->1129518860,ExpressionUUID->"24d43100-6dfc-4e12-b8e0-d796397df260"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Related Links", "RelatedLinksSection",
 CellID->1584193535,ExpressionUUID->"2b3bf95a-6343-4f66-8e4d-8af059e58911"],

Cell["XXXX", "RelatedLinks",
 CellID->1038487239,ExpressionUUID->"e5673018-ee2d-4363-973c-e3cd5615a272"]
}, Open  ]],

Cell[CellGroupData[{

Cell["See Also", "SeeAlsoSection",
 CellID->1255426704,ExpressionUUID->"46a8b98c-a2c8-4a49-a481-90debdb82e68"],

Cell[TextData[{
 Cell[BoxData[
  ButtonBox["MongoCollection",
   BaseStyle->"Link",
   ButtonData->"paclet:MongoLink/ref/MongoCollection"]], "InlineFormula",
  ExpressionUUID->"c94bd26e-af1b-4faf-8833-2de2a1fb9c46"],
 " \[EmptyVerySmallSquare] ",
 Cell[BoxData[
  ButtonBox["MongoCollectionCount",
   BaseStyle->"Link",
   ButtonData->"paclet:MongoLink/ref/MongoCollectionCount"]], "InlineFormula",
  ExpressionUUID->"edea2871-ee72-42d0-aa4c-1c97520a8526"]
}], "SeeAlso",
 CellID->1859150891,ExpressionUUID->"dd1771cf-0da4-4851-8436-a94ed89d335b"]
}, Open  ]],

Cell[CellGroupData[{

Cell["More About", "MoreAboutSection",
 CellID->38303248,ExpressionUUID->"3994b468-9cd1-4c88-ab34-eedfb8a584af"],

Cell["Autogenerated", "MoreAbout",
 CellID->1665078683,ExpressionUUID->"6422d46f-c109-4c76-b272-35a72336cdc6"]
}, Open  ]],

Cell[CellGroupData[{

Cell[BoxData[
 InterpretationBox[GridBox[{
    {
     StyleBox["Examples", "PrimaryExamplesSection"], 
     ButtonBox[
      RowBox[{
       RowBox[{"More", " ", "Examples"}], " ", "\[RightTriangle]"}],
      BaseStyle->"ExtendedExamplesLink",
      ButtonData:>"ExtendedExamples"]}
   }],
  $Line = 0; Null]], "PrimaryExamplesSection",
 CellID->880084151,ExpressionUUID->"b5d7abe0-f190-4e17-bc82-a538502cc10a"],

Cell[CellGroupData[{

Cell[BoxData[
 InterpretationBox[Cell[
  "\t", "ExampleDelimiter",ExpressionUUID->
   "fa2ab6b7-def2-45f8-9bd3-7f558b66019b"],
  $Line = 0; Null]], "ExampleDelimiter",
 CellID->354573589,ExpressionUUID->"289d4d6d-a316-4ae6-85e3-ad6823f58cc4"],

Cell[BoxData[
 RowBox[{"Needs", "[", "\"\<MongoLink`\>\"", "]"}]], "Input",
 CellLabel->"In[1]:=",
 CellID->1553863953,ExpressionUUID->"46479f41-8807-45f1-9df6-1ff4b86c3a89"],

Cell["Connect to a client:", "ExampleText",
 CellID->1212887918,ExpressionUUID->"48abeb9c-3a7d-46ce-bde4-2ccfac1a095d"],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"client", "=", 
  RowBox[{"MongoConnect", "[", "]"}]}]], "Input",
 CellLabel->"In[2]:=",
 CellID->1092460502,ExpressionUUID->"f167a69a-772b-4f37-94e5-0cc65338273d"],

Cell[BoxData[
 InterpretationBox[
  RowBox[{
   TagBox["MongoClient",
    "SummaryHead"], "[", 
   DynamicModuleBox[{Typeset`open$$ = False, Typeset`embedState$$ = "Ready"}, 
    
    TemplateBox[{PaneSelectorBox[{False -> GridBox[{{
            GridBox[{{
               RowBox[{
                 TagBox["\"ID: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["1", "SummaryItem"]}]}}, 
             GridBoxAlignment -> {
              "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> 
             False, GridBoxItemSize -> {
              "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
             GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
              BaseStyle -> {
              ShowStringCharacters -> False, NumberMarks -> False, 
               PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, 
          GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False, 
          GridBoxItemSize -> {
           "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
          BaselinePosition -> {1, 1}], True -> GridBox[{{
            GridBox[{{
               RowBox[{
                 TagBox["\"ID: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["1", "SummaryItem"]}]}}, 
             GridBoxAlignment -> {
              "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> 
             False, GridBoxItemSize -> {
              "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
             GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
              BaseStyle -> {
              ShowStringCharacters -> False, NumberMarks -> False, 
               PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, 
          GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False, 
          GridBoxItemSize -> {
           "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
          BaselinePosition -> {1, 1}]}, 
       Dynamic[Typeset`open$$], ImageSize -> Automatic]},
     "SummaryPanel"],
    DynamicModuleValues:>{}], "]"}],
  MongoLink`MongoClient[
   MongoLink`PackageScope`clientMLE[1]],
  Editable->False,
  SelectWithContents->True,
  Selectable->False]], "Output",
 CellLabel->"Out[2]=",
 CellID->1421958511,ExpressionUUID->"74a690f4-3727-4659-9211-2310036ee23e"]
}, Open  ]],

Cell["\<\
Connect to a the \"WolframTestCollection\" collection in the \
\"WolframTestDB\" database:\
\>", "ExampleText",
 CellID->1120404447,ExpressionUUID->"2a47f0b6-029b-43c2-b4a8-371b6f193a94"],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"coll", "=", 
  RowBox[{
   RowBox[{"client", "[", "\"\<WolframTestDB\>\"", "]"}], "[", 
   "\"\<WolframTestCollection\>\"", "]"}]}]], "Input",
 CellLabel->"In[3]:=",
 CellID->1500923833,ExpressionUUID->"50204b20-5e63-412e-83cd-f16eaa9454df"],

Cell[BoxData[
 InterpretationBox[
  RowBox[{
   TagBox["MongoCollection",
    "SummaryHead"], "[", 
   DynamicModuleBox[{Typeset`open$$ = False, Typeset`embedState$$ = "Ready"}, 
    
    TemplateBox[{PaneSelectorBox[{False -> GridBox[{{
            GridBox[{{
               RowBox[{
                 TagBox["\"ID: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["1", "SummaryItem"]}]}, {
               RowBox[{
                 TagBox["\"Name: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["\"WolframTestCollection\"", "SummaryItem"]}]}, {
               RowBox[{
                 TagBox["\"Database: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["\"WolframTestDB\"", "SummaryItem"]}]}}, 
             GridBoxAlignment -> {
              "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> 
             False, GridBoxItemSize -> {
              "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
             GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
              BaseStyle -> {
              ShowStringCharacters -> False, NumberMarks -> False, 
               PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, 
          GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False, 
          GridBoxItemSize -> {
           "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
          BaselinePosition -> {1, 1}], True -> GridBox[{{
            GridBox[{{
               RowBox[{
                 TagBox["\"ID: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["1", "SummaryItem"]}]}, {
               RowBox[{
                 TagBox["\"Name: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["\"WolframTestCollection\"", "SummaryItem"]}]}, {
               RowBox[{
                 TagBox["\"Database: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["\"WolframTestDB\"", "SummaryItem"]}]}}, 
             GridBoxAlignment -> {
              "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> 
             False, GridBoxItemSize -> {
              "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
             GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
              BaseStyle -> {
              ShowStringCharacters -> False, NumberMarks -> False, 
               PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, 
          GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False, 
          GridBoxItemSize -> {
           "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
          BaselinePosition -> {1, 1}]}, 
       Dynamic[Typeset`open$$], ImageSize -> Automatic]},
     "SummaryPanel"],
    DynamicModuleValues:>{}], "]"}],
  MongoLink`MongoCollection[
   MongoLink`PackageScope`collectionMLE[1], "WolframTestDB", 
   "WolframTestCollection", 
   MongoLink`MongoClient[
    MongoLink`PackageScope`clientMLE[1]]],
  Editable->False,
  SelectWithContents->True,
  Selectable->False]], "Output",
 CellLabel->"Out[3]=",
 CellID->1829923857,ExpressionUUID->"b08f4bb1-4d7a-48b4-baf8-eca587e7c5de"]
}, Open  ]],

Cell["Aggregate values for count and average, grouped by sex:", "ExampleText",
 CellID->1716840566,ExpressionUUID->"90bd3f54-1580-45c1-a168-03c88e475347"],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"agg", "=", 
  RowBox[{"MongoCollectionAggregate", "[", 
   RowBox[{"coll", ",", " ", 
    RowBox[{"{", 
     RowBox[{"<|", 
      RowBox[{"\"\<$group\>\"", "\[Rule]", 
       RowBox[{"<|", 
        RowBox[{
         RowBox[{"\"\<_id\>\"", "\[Rule]", 
          RowBox[{"<|", 
           RowBox[{"\"\<sex\>\"", "\[Rule]", "\"\<$sex\>\""}], "|>"}]}], ",", 
         
         RowBox[{"\"\<count\>\"", "\[Rule]", 
          RowBox[{"<|", 
           RowBox[{"\"\<$sum\>\"", "\[Rule]", "1"}], "|>"}]}], ",", 
         RowBox[{"\"\<average\>\"", "\[Rule]", 
          RowBox[{"<|", 
           RowBox[{"\"\<$avg\>\"", "\[Rule]", "\"\<$age\>\""}], "|>"}]}]}], 
        "|>"}]}], "|>"}], "}"}]}], "]"}]}]], "Input",
 CellLabel->"In[4]:=",
 CellID->1572183485,ExpressionUUID->"7dee3f75-ff33-4618-a769-c89b5defc959"],

Cell[BoxData[
 InterpretationBox[
  RowBox[{
   TagBox["MongoCursor",
    "SummaryHead"], "[", 
   DynamicModuleBox[{Typeset`open$$ = False, Typeset`embedState$$ = "Ready"}, 
    
    TemplateBox[{PaneSelectorBox[{False -> GridBox[{{
            GridBox[{{
               RowBox[{
                 TagBox["\"ID: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["1", "SummaryItem"]}]}}, 
             GridBoxAlignment -> {
              "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> 
             False, GridBoxItemSize -> {
              "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
             GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
              BaseStyle -> {
              ShowStringCharacters -> False, NumberMarks -> False, 
               PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, 
          GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False, 
          GridBoxItemSize -> {
           "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
          BaselinePosition -> {1, 1}], True -> GridBox[{{
            GridBox[{{
               RowBox[{
                 TagBox["\"ID: \"", "SummaryItemAnnotation"], 
                 "\[InvisibleSpace]", 
                 TagBox["1", "SummaryItem"]}]}}, 
             GridBoxAlignment -> {
              "Columns" -> {{Left}}, "Rows" -> {{Automatic}}}, AutoDelete -> 
             False, GridBoxItemSize -> {
              "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
             GridBoxSpacings -> {"Columns" -> {{2}}, "Rows" -> {{Automatic}}},
              BaseStyle -> {
              ShowStringCharacters -> False, NumberMarks -> False, 
               PrintPrecision -> 3, ShowSyntaxStyles -> False}]}}, 
          GridBoxAlignment -> {"Rows" -> {{Top}}}, AutoDelete -> False, 
          GridBoxItemSize -> {
           "Columns" -> {{Automatic}}, "Rows" -> {{Automatic}}}, 
          BaselinePosition -> {1, 1}]}, 
       Dynamic[Typeset`open$$], ImageSize -> Automatic]},
     "SummaryPanel"],
    DynamicModuleValues:>{}], "]"}],
  MongoLink`MongoCursor[
   MongoLink`PackageScope`cursorMLE[1], 
   MongoLink`MongoClient[
    MongoLink`PackageScope`clientMLE[1]]],
  Editable->False,
  SelectWithContents->True,
  Selectable->False]], "Output",
 CellLabel->"Out[4]=",
 CellID->1204443926,ExpressionUUID->"ec86c14d-41ef-4117-aa19-ec4c36c6348c"]
}, Open  ]],

Cell["View aggregated data:", "ExampleText",
 CellID->1314755016,ExpressionUUID->"1d4895ca-bb8c-427e-b9f3-22a810b567e8"],

Cell[CellGroupData[{

Cell[BoxData[
 RowBox[{"Dataset", "[", "agg", "]"}]], "Input",
 CellLabel->"In[5]:=",
 CellID->377773424,ExpressionUUID->"b9e43b0c-4555-45ea-a3c2-24706248bc47"],

Cell[BoxData[
 TemplateBox[{TagBox[
    DynamicModuleBox[{
     TypeSystem`NestedGrid`PackagePrivate`$state$$ = 
      Data`UnorderedAssociation[
       "RowCount" -> 2, "Length" -> 2, "InitialType" -> TypeSystem`Vector[
          TypeSystem`Struct[{"_id", "count", "average"}, {
            TypeSystem`Assoc[
             TypeSystem`Atom[String], 
             TypeSystem`Atom[String], 1], 
            TypeSystem`Atom[Integer], 
            TypeSystem`Atom[Real]}], 2], "Shape" -> 
        TypeSystem`PackageScope`HeaderShape[
          
          Association[{All, "_id"} -> 2, {All, "count"} -> 
           1, {All, "average"} -> 1], 
          TypeSystem`PackageScope`Limited[
           TypeSystem`PackageScope`ColumnShape[
            TypeSystem`PackageScope`RowShape[
             Association["_id" -> TypeSystem`PackageScope`Limited[
                TypeSystem`PackageScope`ColumnShape[
                 TypeSystem`PackageScope`KeyValueShape[
                  TypeSystem`PackageScope`AtomShape[28.800000000000004`], 
                  TypeSystem`PackageScope`AtomShape[57.60000000000001]]], 1, {
                All, "_id"}], "count" -> 
              TypeSystem`PackageScope`AtomShape[34], "average" -> 
              TypeSystem`PackageScope`AtomShape[60]]]], 2, {}]], 
        "InitialData" -> TypeSystem`PackageScope`CacheHandle[1175628043], 
        "Type" -> TypeSystem`Vector[
          TypeSystem`Struct[{"_id", "count", "average"}, {
            TypeSystem`Assoc[
             TypeSystem`Atom[String], 
             TypeSystem`Atom[String], 1], 
            TypeSystem`Atom[Integer], 
            TypeSystem`Atom[Real]}], 2], "HandleQ" -> True, "RowTarget" -> 20,
         "Data" -> TypeSystem`PackageScope`CacheHandle[1175628043]], 
      TypeSystem`NestedGrid`PackagePrivate`$path$$ = {}, 
      TypeSystem`NestedGrid`PackagePrivate`$pos$$ = 1, 
      TypeSystem`NestedGrid`PackagePrivate`$grid$$ = 
      DynamicModule[{
        TypeSystem`NestedGrid`PackagePrivate`renderedGrid = Deploy[
           Style[
            Grid[{{
               Item[
                Annotation[
                 EventHandler[
                  MouseAppearance[
                   Mouseover[
                    Pane[
                    RawBoxes[
                    StyleBox["\"_id\"", FontColor -> GrayLevel[0.4]]], {{
                    20, Full}, 15}], 
                    Style[
                    Pane[
                    RawBoxes[
                    StyleBox[
                    "\"_id\"", FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], {{20, Full}, 15}], FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], "LinkHand"], {"MouseClicked", 1} :> 
                  TypeSystem`NestedGrid`PackagePrivate`updateState[
                   TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$path$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$pos$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$grid$$, 
                    1899102597][{All, "_id"}]], 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[All, "_id"]], "Mouse"], Background -> 
                GrayLevel[0.95], Alignment -> {Center, Baseline}], 
               SpanFromLeft, 
               Item[
                Annotation[
                 EventHandler[
                  MouseAppearance[
                   Mouseover[
                    Pane[
                    RawBoxes[
                    StyleBox["\"count\"", FontColor -> GrayLevel[0.4]]], {{
                    20, Full}, 15}], 
                    Style[
                    Pane[
                    RawBoxes[
                    StyleBox[
                    "\"count\"", FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], {{20, Full}, 15}], FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], "LinkHand"], {"MouseClicked", 1} :> 
                  TypeSystem`NestedGrid`PackagePrivate`updateState[
                   TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$path$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$pos$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$grid$$, 
                    1899102597][{All, "count"}]], 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[All, "count"]], "Mouse"], Background -> 
                GrayLevel[0.95], Alignment -> {Left, Baseline}], 
               Item[
                Annotation[
                 EventHandler[
                  MouseAppearance[
                   Mouseover[
                    Pane[
                    RawBoxes[
                    StyleBox["\"average\"", FontColor -> GrayLevel[0.4]]], {{
                    20, Full}, 15}], 
                    Style[
                    Pane[
                    RawBoxes[
                    StyleBox[
                    "\"average\"", FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], {{20, Full}, 15}], FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], "LinkHand"], {"MouseClicked", 1} :> 
                  TypeSystem`NestedGrid`PackagePrivate`updateState[
                   TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$path$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$pos$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$grid$$, 
                    1899102597][{All, "average"}]], 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[All, "average"]], "Mouse"], 
                Background -> GrayLevel[0.95], 
                Alignment -> {Left, Baseline}]}, {
               Item[
                Pane[
                 Annotation[
                  EventHandler[
                   MouseAppearance[
                    Mouseover["sex", 
                    Style[
                    "sex", FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], "LinkHand"], {"MouseClicked", 1} :> 
                   TypeSystem`NestedGrid`PackagePrivate`updateState[
                    TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$path$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$pos$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$grid$$, 
                    1899102597][{1, 
                    Key["_id"], 
                    Key["sex"]}]], 
                  TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[
                  1899102597][
                   GeneralUtilities`Slice[1, 
                    Key["_id"], 
                    Key["sex"]]], "Mouse"], 
                 ImageSize -> {{28.800000000000004`, Full}, Automatic}], 
                Background -> GrayLevel[0.95], Alignment -> {Left, Baseline}], 
               Pane[
                Annotation["male", 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[1, 
                   Key["_id"], 
                   Key["sex"]]], "Mouse"], 
                ImageSize -> {{57.60000000000001, Full}, Automatic}, 
                Alignment -> {Left, Baseline}], 
               Pane[
                Annotation[
                 RawBoxes["1"], 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[1, 
                   Key["count"]]], "Mouse"], 
                ImageSize -> {{34, Full}, Automatic}, 
                Alignment -> {Left, Baseline}], 
               Pane[
                Annotation[
                 RawBoxes["5."], 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[1, 
                   Key["average"]]], "Mouse"], 
                ImageSize -> {{60, Full}, Automatic}, 
                Alignment -> {Left, Baseline}]}, {
               Item[
                Pane[
                 Annotation[
                  EventHandler[
                   MouseAppearance[
                    Mouseover["sex", 
                    Style[
                    "sex", FontColor -> 
                    RGBColor[
                    0.27450980392156865`, 0.5372549019607843, 
                    0.792156862745098]]], "LinkHand"], {"MouseClicked", 1} :> 
                   TypeSystem`NestedGrid`PackagePrivate`updateState[
                    TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$path$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$pos$$, 
                    TypeSystem`NestedGrid`PackagePrivate`$grid$$, 
                    1899102597][{2, 
                    Key["_id"], 
                    Key["sex"]}]], 
                  TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[
                  1899102597][
                   GeneralUtilities`Slice[2, 
                    Key["_id"], 
                    Key["sex"]]], "Mouse"], 
                 ImageSize -> {{28.800000000000004`, Full}, Automatic}], 
                Background -> GrayLevel[0.95], Alignment -> {Left, Baseline}], 
               Pane[
                Annotation["female", 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[2, 
                   Key["_id"], 
                   Key["sex"]]], "Mouse"], 
                ImageSize -> {{57.60000000000001, Full}, Automatic}, 
                Alignment -> {Left, Baseline}], 
               Pane[
                Annotation[
                 RawBoxes["2"], 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[2, 
                   Key["count"]]], "Mouse"], 
                ImageSize -> {{34, Full}, Automatic}, 
                Alignment -> {Left, Baseline}], 
               Pane[
                Annotation[
                 RawBoxes["3.5"], 
                 TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
                  GeneralUtilities`Slice[2, 
                   Key["average"]]], "Mouse"], 
                ImageSize -> {{60, Full}, Automatic}, 
                Alignment -> {Left, Baseline}]}}, BaseStyle -> {ContextMenu -> {
                 MenuItem["Copy position to clipboard", 
                  KernelExecute[
                   TypeSystem`NestedGrid`PackagePrivate`toCurrentPosition[
                   TypeSystem`NestedGrid`PackagePrivate`copyClip]], 
                  MenuEvaluator -> Automatic], 
                 MenuItem["Copy data to clipboard", 
                  KernelExecute[
                   TypeSystem`NestedGrid`PackagePrivate`toCurrentData[
                   TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                    TypeSystem`NestedGrid`PackagePrivate`copyClip]], 
                  MenuEvaluator -> Automatic], Delimiter, 
                 MenuItem["Paste position in new cell", 
                  KernelExecute[
                   TypeSystem`NestedGrid`PackagePrivate`toCurrentPosition[
                   TypeSystem`NestedGrid`PackagePrivate`cellPaste]], 
                  MenuEvaluator -> Automatic], 
                 MenuItem["Paste data in new cell", 
                  KernelExecute[
                   TypeSystem`NestedGrid`PackagePrivate`toCurrentData[
                   TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                    TypeSystem`NestedGrid`PackagePrivate`cellPaste]], 
                  MenuEvaluator -> Automatic]}, FontFamily -> "Verdana", 
               FontSize -> 12}, Alignment -> Left, RowMinHeight -> 1.5, 
             Dividers -> All, FrameStyle -> GrayLevel[0.85], 
             BaseStyle -> {FontFamily -> "Verdana", FontSize -> 12}], 
            LineBreakWithin -> False, ContextMenu -> {}, NumberMarks -> False,
             ShowAutoStyles -> False]], 
         TypeSystem`NestedGrid`PackagePrivate`initialQ = True, 
         TypeSystem`NestedGrid`PackagePrivate`self = $Failed}, 
        Dynamic[
         TypeSystem`NestedGrid`PackagePrivate`setupViewPath[
         TypeSystem`NestedGrid`PackagePrivate`$path$$, If[
            Not[TypeSystem`NestedGrid`PackagePrivate`initialQ], 
            
            Module[{TypeSystem`NestedGrid`PackagePrivate`tmpGrid$ = $Failed, 
              TypeSystem`NestedGrid`PackagePrivate`tmpData$ = 
              TypeSystem`NestedGrid`PackagePrivate`LookupCacheValue[
                TypeSystem`NestedGrid`PackagePrivate`$state$$["Data"]]}, 
             TypeSystem`NestedGrid`PackagePrivate`tmpGrid$ = 
              If[TypeSystem`NestedGrid`PackagePrivate`tmpData$ === 
                TypeSystem`NestedGrid`PackagePrivate`$NotCached, 
                TypeSystem`NestedGrid`PackagePrivate`renderedGrid, 
                TypeSystem`NestedGrid`PackagePrivate`renderGrid[
                TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                 TypeSystem`NestedGrid`PackagePrivate`$path$$, 
                 TypeSystem`NestedGrid`PackagePrivate`$pos$$, 
                 TypeSystem`NestedGrid`PackagePrivate`$grid$$, 1899102597][
                TypeSystem`NestedGrid`PackagePrivate`tmpData$]]; If[
               Not[
                FailureQ[TypeSystem`NestedGrid`PackagePrivate`tmpGrid$]], 
               TypeSystem`NestedGrid`PackagePrivate`renderedGrid = 
               TypeSystem`NestedGrid`PackagePrivate`tmpGrid$]; Null]]; 
          TypeSystem`NestedGrid`PackagePrivate`initialQ = False; 
          TypeSystem`NestedGrid`PackagePrivate`$pos$$; If[
            FailureQ[TypeSystem`NestedGrid`PackagePrivate`renderedGrid], 
            TypeSystem`SparseGrid[
             TypeSystem`H["(data no longer present)"]], 
            If[GeneralUtilities`$DebugMode, 
             Row[{TypeSystem`NestedGrid`PackagePrivate`renderedGrid, "  ", 
               TypeSystem`NestedGrid`PackagePrivate`formatState[
               TypeSystem`NestedGrid`PackagePrivate`$state$$, 
                TypeSystem`NestedGrid`PackagePrivate`$path$$, 
                TypeSystem`NestedGrid`PackagePrivate`$pos$$]}], 
             TypeSystem`NestedGrid`PackagePrivate`renderedGrid]]], 
         TrackedSymbols :> {TypeSystem`NestedGrid`PackagePrivate`$pos$$}], 
        DynamicModuleValues :> {}], 
      TypeSystem`NestedGrid`PackagePrivate`$posCell$$, 
      TypeSystem`NestedGrid`PackagePrivate`$topBar$$ = Dynamic[
        TypeSystem`NestedGrid`PackagePrivate`alignBar[
        TypeSystem`NestedGrid`PackagePrivate`$state$$][
         TypeSystem`NestedGrid`PackagePrivate`makeFramedBar[
          TypeSystem`PackageScope`Pathbar[
          TypeSystem`NestedGrid`PackagePrivate`$path$$, 
           TypeSystem`NestedGrid`PackagePrivate`updateState[
           TypeSystem`NestedGrid`PackagePrivate`$state$$, 
            TypeSystem`NestedGrid`PackagePrivate`$path$$, 
            TypeSystem`NestedGrid`PackagePrivate`$pos$$, 
            TypeSystem`NestedGrid`PackagePrivate`$grid$$, 1899102597]]]], 
        TrackedSymbols :> {TypeSystem`NestedGrid`PackagePrivate`$path$$}], 
      TypeSystem`NestedGrid`PackagePrivate`$bottomBar$$ = Framed[
        Dynamic[
         Replace[
          MouseAnnotation[Null], {
          TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][Null] -> 
           "", TypeSystem`NestedGrid`PackagePrivate`$SliceMarker[1899102597][
             Pattern[TypeSystem`NestedGrid`PackagePrivate`path, 
              Blank[]]] :> (
            TypeSystem`NestedGrid`PackagePrivate`$lastPath = 
             TypeSystem`NestedGrid`PackagePrivate`path; 
            TypeSystem`NestedGrid`PackagePrivate`makePathTrail[
             TypeSystem`NestedGrid`PackagePrivate`path, 
              TypeSystem`NestedGrid`PackagePrivate`makePathElements]), Null :> 
           Spacer[10], Blank[] :> Spacer[10]}], TrackedSymbols :> {}], 
        FrameStyle -> None, ImageMargins -> 0, FrameMargins -> 0, Alignment -> 
        Top, ImageSize -> {Automatic, 14}]}, 
     DynamicBox[
      ToBoxes[
       Column[
        If[TypeSystem`NestedGrid`PackagePrivate`$path$$ == {}, {
          TypeSystem`NestedGrid`PackagePrivate`displayScrollBar[
          TypeSystem`NestedGrid`PackagePrivate`$grid$$, 
           TypeSystem`NestedGrid`PackagePrivate`$state$$, 
           TypeSystem`NestedGrid`PackagePrivate`$pos$$], 
          TypeSystem`NestedGrid`PackagePrivate`onDesktopShow[
           TypeSystem`NestedGrid`PackagePrivate`alignBar[
           TypeSystem`NestedGrid`PackagePrivate`$state$$][
           TypeSystem`NestedGrid`PackagePrivate`$bottomBar$$]]}, {
         TypeSystem`NestedGrid`PackagePrivate`$topBar$$, 
          TypeSystem`NestedGrid`PackagePrivate`displayScrollBar[
          TypeSystem`NestedGrid`PackagePrivate`$grid$$, 
           TypeSystem`NestedGrid`PackagePrivate`$state$$, 
           TypeSystem`NestedGrid`PackagePrivate`$pos$$], 
          TypeSystem`NestedGrid`PackagePrivate`onDesktopShow[
           TypeSystem`NestedGrid`PackagePrivate`alignBar[
           TypeSystem`NestedGrid`PackagePrivate`$state$$][
           TypeSystem`NestedGrid`PackagePrivate`$bottomBar$$]]}], Spacings -> 
        If[TypeSystem`NestedGrid`PackagePrivate`$path$$ == {}, 
          0, {{}, {0, 0.05, 0}}]], StandardForm], 
      ImageSizeCache -> {219., {42.3544921875, 47.6455078125}}, 
      TrackedSymbols :> {
       TypeSystem`NestedGrid`PackagePrivate`$state$$, 
        TypeSystem`NestedGrid`PackagePrivate`$grid$$}], 
     BaseStyle -> {LineBreakWithin -> False}, Deinitialization :> 
     TypeSystem`NestedGrid`PackagePrivate`deleteState[
      TypeSystem`NestedGrid`PackagePrivate`$state$$], 
     DynamicModuleValues :> {}, Initialization :> 
     Block[{$ContextPath = $ContextPath}, 
       Needs["TypeSystem`"]]], Deploy, DefaultBaseStyle -> "Deploy"]},
  "CopyTag",
  DisplayFunction->(#& ),
  InterpretationFunction->("Dataset[<>]"& )]], "Output",
 CellLabel->"Out[5]=",
 CellID->1655883318,ExpressionUUID->"86f3a872-50b5-4c06-852f-b7ebbc88f7e2"]
}, Open  ]]
}, Open  ]]
}, Open  ]],

Cell[CellGroupData[{

Cell["More Examples", "ExtendedExamplesSection",
 CellTags->"ExtendedExamples",
 CellID->1854448968,ExpressionUUID->"47f7a92f-6afe-47f5-93e1-345889c13240"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Scope", "ExampleSection",ExpressionUUID->
   "017ff426-8e69-4db3-b273-9f6dc3e51af4"],
  $Line = 0; Null]], "ExampleSection",
 CellID->1293636265,ExpressionUUID->"249d7758-e8f0-4862-954e-178891e211ae"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Generalizations & Extensions", "ExampleSection",ExpressionUUID->
   "02a46edc-9d2e-4b7e-b7a7-a2dafaa60787"],
  $Line = 0; Null]], "ExampleSection",
 CellID->1020263627,ExpressionUUID->"d4c283e9-edcd-4097-8eba-8eee1e1bdb8f"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Options", "ExampleSection",ExpressionUUID->
   "fa621db1-7784-49a1-8f92-50129d899990"],
  $Line = 0; Null]], "ExampleSection",
 CellID->2061341341,ExpressionUUID->"474716c8-1a5e-4c47-b7af-6926019260fe"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Applications", "ExampleSection",ExpressionUUID->
   "5a0ba029-2ce1-4ab0-b084-578267f8b297"],
  $Line = 0; Null]], "ExampleSection",
 CellID->258228157,ExpressionUUID->"cc273149-f7ca-4b51-a360-8add4ede973f"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Properties & Relations", "ExampleSection",ExpressionUUID->
   "966d290b-9d79-4879-a38e-4d1ffba388c5"],
  $Line = 0; Null]], "ExampleSection",
 CellID->2123667759,ExpressionUUID->"3aa05aa0-e12b-457c-9e38-bdb6d8bc7554"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Possible Issues", "ExampleSection",ExpressionUUID->
   "0d24a99a-fe1e-46a3-8ce3-ec8b68eb7c19"],
  $Line = 0; Null]], "ExampleSection",
 CellID->1305812373,ExpressionUUID->"31dfb48b-2916-4321-bebf-2c2aac15adb0"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Interactive Examples", "ExampleSection",ExpressionUUID->
   "16c2d4c3-84a9-489d-b47a-d200f9f1b514"],
  $Line = 0; Null]], "ExampleSection",
 CellID->1653164318,ExpressionUUID->"95aba176-ecf1-4cc6-9d39-c8b30152b116"],

Cell[BoxData[
 InterpretationBox[Cell[
  "Neat Examples", "ExampleSection",ExpressionUUID->
   "9869fd2c-f6a1-4c1b-9ba6-f50828a9f9f5"],
  $Line = 0; Null]], "ExampleSection",
 CellID->589267740,ExpressionUUID->"ae6c9c74-9456-4dcc-902a-c59763f6a872"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Design Discussion", "DesignDiscussionSection",
 CellID->1775809863,ExpressionUUID->"88b5534d-0a7d-4be0-b958-6425797d7389"],

Cell["XXXX", "DesignDiscussion",
 CellID->308641435,ExpressionUUID->"42dca83e-d1a4-49dd-bf4c-2334faf756bf"]
}, Open  ]],

Cell[CellGroupData[{

Cell["Application Notes", "ApplicationNotesSection",
 CellID->1163590540,ExpressionUUID->"09209496-de9c-44b1-867f-6a591c681d7c"],

Cell["XXXX", "ApplicationNotes",
 CellID->1480116198,ExpressionUUID->"f1db9e9f-ed36-46d9-82f2-95edd1004759"]
}, Open  ]],

Cell["Test Cases", "TestCasesSection",
 CellID->725748110,ExpressionUUID->"108563cc-648b-4348-b8e5-b6215c5974dc"],

Cell[CellGroupData[{

Cell["Function Essay", "FunctionEssaySection",
 CellID->37427227,ExpressionUUID->"0f451ecb-c937-402a-95a5-5eadb549d02b"],

Cell["XXXX", "FunctionEssay",
 CellID->356990964,ExpressionUUID->"fe99132d-843a-49f5-81f5-9eec7e2de03a"]
}, Open  ]]
},
ScreenStyleEnvironment->"ExperimentalObject",
WindowSize->{1720, 1324},
WindowMargins->{{773, Automatic}, {6, Automatic}},
TaggingRules->{
 "DocuToolsSettingsInternal" -> {
   "$PacletVersion" -> "0.9.1871", "$MVersion" -> "11", "$FlaggedVersion" -> 
    10.4, "$ApplicationName" -> "Pubs", "$LinkBase" -> "Pubs", 
    "$ApplicationDirectory" -> "C:\\Workspace\\Pubs\\", 
    "$DocumentationDirectory" -> 
    "C:\\Workspace\\Pubs\\Documentation\\English\\", "$UseNewPageDialog" -> 
    ""}, "SecurityRisk" -> False, "SecurityExplanation" -> "", "Author" -> 
  "meghanr", "CreationDate" -> "09-14-2017 14:37:26"},
FrontEndVersion->"12.0 for Mac OS X x86 (64-bit) (November 18, 2018)",
StyleDefinitions->FrontEnd`FileName[{"Wolfram"}, "FunctionPageStyles.nb", 
  CharacterEncoding -> "UTF-8"]
]
(* End of Notebook Content *)

(* Internal cache information *)
(*CellTagsOutline
CellTagsIndex->{
 "ExtendedExamples"->{
  Cell[41514, 1000, 155, 2, 56, "ExtendedExamplesSection",ExpressionUUID->"47f7a92f-6afe-47f5-93e1-345889c13240",
   CellTags->"ExtendedExamples",
   CellID->1854448968]}
 }
*)
(*CellTagsIndex
CellTagsIndex->{
 {"ExtendedExamples", 45570, 1112}
 }
*)
(*NotebookFileOutline
Notebook[{
Cell[558, 20, 600, 14, 24, "History",ExpressionUUID->"6736fc4f-1941-4c28-93a2-d3648c8107d3",
 CellID->341476719],
Cell[1161, 36, 140, 1, 20, "AuthorDate",ExpressionUUID->"cf483e96-d888-4ee2-91b7-824133a43d99",
 CellID->1276009994],
Cell[CellGroupData[{
Cell[1326, 41, 123, 1, 29, "CategorizationSection",ExpressionUUID->"fc467886-c823-4f55-9fcd-c5db0c3197c7",
 CellID->1122911449],
Cell[1452, 44, 134, 2, 30, "Categorization",ExpressionUUID->"9bd608e6-15b1-463c-9b14-a06a8aa35e76",
 CellID->686433507],
Cell[1589, 48, 137, 2, 30, "Categorization",ExpressionUUID->"cc3bc352-90bf-4c8a-b7b3-d0038d5dba38",
 CellID->605800465],
Cell[1729, 52, 134, 2, 30, "Categorization",ExpressionUUID->"cb104a4e-3462-4685-9637-052ff1e32c2c",
 CellID->468444828],
Cell[1866, 56, 138, 1, 30, "Categorization",ExpressionUUID->"dd8ba117-0491-4ec7-a51a-04d6fde044a4"],
Cell[2007, 59, 135, 2, 30, "Categorization",ExpressionUUID->"d7b7f6bf-4827-4b57-83fb-36d22bd885b7",
 CellID->172747495]
}, Open  ]],
Cell[CellGroupData[{
Cell[2179, 66, 111, 1, 29, "SynonymsSection",ExpressionUUID->"73806875-dc2c-4dc5-8485-9a164ca9a15b",
 CellID->1427418553],
Cell[2293, 69, 100, 1, 70, "Synonyms",ExpressionUUID->"cfa65330-8f59-45c3-b2f0-6dad7bf4b255",
 CellID->1251652828]
}, Closed]],
Cell[CellGroupData[{
Cell[2430, 75, 110, 1, 19, "KeywordsSection",ExpressionUUID->"e6c14227-a2ed-4ca3-9a65-1c26b2cfb026",
 CellID->477174294],
Cell[2543, 78, 100, 1, 70, "Keywords",ExpressionUUID->"3311276b-0b4a-4c99-b24b-61cb4d411b8a",
 CellID->1164421360]
}, Closed]],
Cell[CellGroupData[{
Cell[2680, 84, 120, 1, 19, "TemplatesSection",ExpressionUUID->"d323ab21-5d22-4a66-b341-b59e122d8e85",
 CellID->1872225408],
Cell[2803, 87, 149, 2, 70, "Template",ExpressionUUID->"6cbfcbbb-c153-46aa-9174-d4819fd84b5e",
 CellID->1562036412],
Cell[2955, 91, 137, 2, 70, "Template",ExpressionUUID->"038ed697-8009-4e7f-8bd2-a07ef0eac313",
 CellID->158391909],
Cell[3095, 95, 136, 2, 70, "Template",ExpressionUUID->"3cb837df-be58-4489-9f56-66b6e7c1b450",
 CellID->1360575930],
Cell[3234, 99, 137, 2, 70, "Template",ExpressionUUID->"dbc1edcb-4482-4877-88bf-4a289c35a1e2",
 CellID->793782254]
}, Closed]],
Cell[CellGroupData[{
Cell[3408, 106, 108, 1, 19, "DetailsSection",ExpressionUUID->"8ea96d98-b092-43ea-8f08-39ba45298337",
 CellID->307771771],
Cell[3519, 109, 117, 2, 70, "Details",ExpressionUUID->"25802d41-740b-4f74-bcef-7375ba382655",
 CellID->49458704],
Cell[3639, 113, 124, 2, 70, "Details",ExpressionUUID->"f5cd0cf5-5bd4-4f3a-8b35-8ac580f15ae2",
 CellID->350963985],
Cell[3766, 117, 121, 2, 70, "Details",ExpressionUUID->"0fb37b38-fa43-4b30-b97b-8673eb3ea647",
 CellID->422270209],
Cell[3890, 121, 126, 2, 70, "Details",ExpressionUUID->"400ada42-3959-4a47-a3c6-17bd23308b3f",
 CellID->545239557],
Cell[4019, 125, 116, 2, 70, "Details",ExpressionUUID->"fdf078d0-9cd1-433d-b1db-3a2bdebb4a98",
 CellID->121292707],
Cell[4138, 129, 115, 2, 70, "Details",ExpressionUUID->"5496af28-ce6f-4b3d-8d14-9b657dfc7534",
 CellID->29314406],
Cell[4256, 133, 117, 2, 70, "Details",ExpressionUUID->"3cf904ce-dca8-4911-ac29-c77ea3b6cd91",
 CellID->96001539],
Cell[4376, 137, 133, 2, 70, "Details",ExpressionUUID->"c2757ee7-6663-445a-9c85-9f9a84538060",
 CellID->123278822],
Cell[4512, 141, 122, 2, 70, "Details",ExpressionUUID->"3c221cc7-ada2-4d75-955b-5e7b0fcaf473",
 CellID->240026365]
}, Closed]],
Cell[CellGroupData[{
Cell[4671, 148, 117, 1, 19, "SecuritySection",ExpressionUUID->"cbdbd5d6-7559-4192-9880-b611d2c416f8",
 CellID->13551076],
Cell[4791, 151, 1094, 30, 70, "SecurityDetails",ExpressionUUID->"191b4e17-e850-4052-a7f5-dd53180b9f16",
 CellID->2488900]
}, Closed]],
Cell[CellGroupData[{
Cell[5922, 186, 122, 1, 63, "ObjectName",ExpressionUUID->"e83e4266-7b96-4514-9c01-84f35b982428",
 CellID->1224892054],
Cell[6047, 189, 935, 23, 81, "Usage",ExpressionUUID->"c2ed396c-091c-4af4-b412-d6985690cf62",
 CellID->982511436],
Cell[6985, 214, 641, 19, 28, "Notes",ExpressionUUID->"f1af8f64-99a9-4f30-927e-cf36edd7232e",
 CellID->362132550],
Cell[7629, 235, 598, 15, 41, "Notes",ExpressionUUID->"7215f730-2c41-47f5-81dd-b4d7c3375925",
 CellID->1067943069],
Cell[8230, 252, 533, 13, 25, "Notes",ExpressionUUID->"46deca33-7d0d-48f3-a714-8dcc816cd8ec",
 CellID->537891225],
Cell[8766, 267, 701, 17, 28, "Notes",ExpressionUUID->"00dd3b19-016c-45c8-bbed-20e7735b3920",
 CellID->1905620106]
}, Open  ]],
Cell[CellGroupData[{
Cell[9504, 289, 112, 1, 44, "TutorialsSection",ExpressionUUID->"93c189c8-fa16-4afd-b2e1-f954413b2828",
 CellID->250839057],
Cell[9619, 292, 369, 9, 16, "Tutorials",ExpressionUUID->"4bcf9d8e-0430-4c48-b6c1-32c556b686d7",
 CellID->341631938]
}, Open  ]],
Cell[CellGroupData[{
Cell[10025, 306, 138, 1, 31, "RelatedDemonstrationsSection",ExpressionUUID->"f93f2f81-c821-43c4-93ad-fe293c6a47a0",
 CellID->1268215905],
Cell[10166, 309, 113, 1, 16, "RelatedDemonstrations",ExpressionUUID->"24d43100-6dfc-4e12-b8e0-d796397df260",
 CellID->1129518860]
}, Open  ]],
Cell[CellGroupData[{
Cell[10316, 315, 120, 1, 31, "RelatedLinksSection",ExpressionUUID->"2b3bf95a-6343-4f66-8e4d-8af059e58911",
 CellID->1584193535],
Cell[10439, 318, 104, 1, 16, "RelatedLinks",ExpressionUUID->"e5673018-ee2d-4363-973c-e3cd5615a272",
 CellID->1038487239]
}, Open  ]],
Cell[CellGroupData[{
Cell[10580, 324, 110, 1, 31, "SeeAlsoSection",ExpressionUUID->"46a8b98c-a2c8-4a49-a481-90debdb82e68",
 CellID->1255426704],
Cell[10693, 327, 547, 13, 22, "SeeAlso",ExpressionUUID->"dd1771cf-0da4-4851-8436-a94ed89d335b",
 CellID->1859150891]
}, Open  ]],
Cell[CellGroupData[{
Cell[11277, 345, 112, 1, 31, "MoreAboutSection",ExpressionUUID->"3994b468-9cd1-4c88-ab34-eedfb8a584af",
 CellID->38303248],
Cell[11392, 348, 110, 1, 16, "MoreAbout",ExpressionUUID->"6422d46f-c109-4c76-b272-35a72336cdc6",
 CellID->1665078683]
}, Open  ]],
Cell[CellGroupData[{
Cell[11539, 354, 411, 11, 70, "PrimaryExamplesSection",ExpressionUUID->"b5d7abe0-f190-4e17-bc82-a538502cc10a",
 CellID->880084151],
Cell[CellGroupData[{
Cell[11975, 369, 242, 5, 17, "ExampleDelimiter",ExpressionUUID->"289d4d6d-a316-4ae6-85e3-ad6823f58cc4",
 CellID->354573589],
Cell[12220, 376, 174, 3, 27, "Input",ExpressionUUID->"46479f41-8807-45f1-9df6-1ff4b86c3a89",
 CellID->1553863953],
Cell[12397, 381, 119, 1, 22, "ExampleText",ExpressionUUID->"48abeb9c-3a7d-46ce-bde4-2ccfac1a095d",
 CellID->1212887918],
Cell[CellGroupData[{
Cell[12541, 386, 187, 4, 27, "Input",ExpressionUUID->"f167a69a-772b-4f37-94e5-0cc65338273d",
 CellID->1092460502],
Cell[12731, 392, 2366, 51, 45, "Output",ExpressionUUID->"74a690f4-3727-4659-9211-2310036ee23e",
 CellID->1421958511]
}, Open  ]],
Cell[15112, 446, 197, 4, 22, "ExampleText",ExpressionUUID->"2a47f0b6-029b-43c2-b4a8-371b6f193a94",
 CellID->1120404447],
Cell[CellGroupData[{
Cell[15334, 454, 265, 6, 27, "Input",ExpressionUUID->"50204b20-5e63-412e-83cd-f16eaa9454df",
 CellID->1500923833],
Cell[15602, 462, 3293, 70, 71, "Output",ExpressionUUID->"b08f4bb1-4d7a-48b4-baf8-eca587e7c5de",
 CellID->1829923857]
}, Open  ]],
Cell[18910, 535, 154, 1, 22, "ExampleText",ExpressionUUID->"90bd3f54-1580-45c1-a168-03c88e475347",
 CellID->1716840566],
Cell[CellGroupData[{
Cell[19089, 540, 831, 21, 66, "Input",ExpressionUUID->"7dee3f75-ff33-4618-a769-c89b5defc959",
 CellID->1572183485],
Cell[19923, 563, 2435, 53, 45, "Output",ExpressionUUID->"ec86c14d-41ef-4117-aa19-ec4c36c6348c",
 CellID->1204443926]
}, Open  ]],
Cell[22373, 619, 120, 1, 22, "ExampleText",ExpressionUUID->"1d4895ca-bb8c-427e-b9f3-22a810b567e8",
 CellID->1314755016],
Cell[CellGroupData[{
Cell[22518, 624, 160, 3, 27, "Input",ExpressionUUID->"b9e43b0c-4555-45ea-a3c2-24706248bc47",
 CellID->377773424],
Cell[22681, 629, 18772, 364, 102, "Output",ExpressionUUID->"86f3a872-50b5-4c06-852f-b7ebbc88f7e2",
 CellID->1655883318]
}, Open  ]]
}, Open  ]]
}, Open  ]],
Cell[CellGroupData[{
Cell[41514, 1000, 155, 2, 56, "ExtendedExamplesSection",ExpressionUUID->"47f7a92f-6afe-47f5-93e1-345889c13240",
 CellTags->"ExtendedExamples",
 CellID->1854448968],
Cell[41672, 1004, 242, 5, 33, "ExampleSection",ExpressionUUID->"249d7758-e8f0-4862-954e-178891e211ae",
 CellID->1293636265],
Cell[41917, 1011, 265, 5, 21, "ExampleSection",ExpressionUUID->"d4c283e9-edcd-4097-8eba-8eee1e1bdb8f",
 CellID->1020263627],
Cell[42185, 1018, 244, 5, 21, "ExampleSection",ExpressionUUID->"474716c8-1a5e-4c47-b7af-6926019260fe",
 CellID->2061341341],
Cell[42432, 1025, 248, 5, 21, "ExampleSection",ExpressionUUID->"cc273149-f7ca-4b51-a360-8add4ede973f",
 CellID->258228157],
Cell[42683, 1032, 259, 5, 21, "ExampleSection",ExpressionUUID->"3aa05aa0-e12b-457c-9e38-bdb6d8bc7554",
 CellID->2123667759],
Cell[42945, 1039, 252, 5, 21, "ExampleSection",ExpressionUUID->"31dfb48b-2916-4321-bebf-2c2aac15adb0",
 CellID->1305812373],
Cell[43200, 1046, 257, 5, 21, "ExampleSection",ExpressionUUID->"95aba176-ecf1-4cc6-9d39-c8b30152b116",
 CellID->1653164318],
Cell[43460, 1053, 249, 5, 21, "ExampleSection",ExpressionUUID->"ae6c9c74-9456-4dcc-902a-c59763f6a872",
 CellID->589267740]
}, Open  ]],
Cell[CellGroupData[{
Cell[43746, 1063, 128, 1, 79, "DesignDiscussionSection",ExpressionUUID->"88b5534d-0a7d-4be0-b958-6425797d7389",
 CellID->1775809863],
Cell[43877, 1066, 107, 1, 16, "DesignDiscussion",ExpressionUUID->"42dca83e-d1a4-49dd-bf4c-2334faf756bf",
 CellID->308641435]
}, Open  ]],
Cell[CellGroupData[{
Cell[44021, 1072, 128, 1, 31, "ApplicationNotesSection",ExpressionUUID->"09209496-de9c-44b1-867f-6a591c681d7c",
 CellID->1163590540],
Cell[44152, 1075, 108, 1, 16, "ApplicationNotes",ExpressionUUID->"f1db9e9f-ed36-46d9-82f2-95edd1004759",
 CellID->1480116198]
}, Open  ]],
Cell[44275, 1079, 113, 1, 31, "TestCasesSection",ExpressionUUID->"108563cc-648b-4348-b8e5-b6215c5974dc",
 CellID->725748110],
Cell[CellGroupData[{
Cell[44413, 1084, 120, 1, 33, "FunctionEssaySection",ExpressionUUID->"0f451ecb-c937-402a-95a5-5eadb549d02b",
 CellID->37427227],
Cell[44536, 1087, 104, 1, 19, "FunctionEssay",ExpressionUUID->"fe99132d-843a-49f5-81f5-9eec7e2de03a",
 CellID->356990964]
}, Open  ]]
}
]
*)

